www.gusucode.com > 酷维企业网站CMS管理系统 v2.1.0 > 酷维企业网站CMS管理系统 v2.1.0\code\wzcx.asp
<% '程序名称:酷维企业网站程序CMS '运行环境:ASP+ACCESS '程序大小:4.60MB '软件类型:ASP源码 '联系方式:QQ:921072227 '程序演示:企业程序 '官方网站:http://cms.coczz.com %> <!--#include file="conn.asp" --> <% keywords=trim(request.querystring("keywords")) %> <html> <head> <title>http://cms.coczz.com-搜索</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <link href="style.css" rel="stylesheet" type="text/css"> <script language=JavaScript src="js/js.js" type=text/javascript></script> <script type="text/JavaScript"> <!-- function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } //--> </script> </head> <body onLoad="MM_preloadImages('images/logo.png','images/left_mlly_9.png','images/oncik_1.png','images/oncik_3.png','flash/01.swf','images/top_4.png','flash/02.swf','flash/03.swf','flash/oncik.swf','images/oncik_2.png','images/right_bg.png')"> <!--网站顶部开始 mainboy --> <!--#include file="top.asp" --> <!--网站顶部结束 mainboy --> <table width="980" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="32" align="center" valign="top" bgcolor="#FFFFFF"><!--#include file="left.asp" --> <!--网站顶部开始 --><!--网站顶部结束 --> </td> <td align="center" valign="top"><TABLE WIDTH=98% BORDER=0 CELLPADDING=0 CELLSPACING=0> <TR> <TD height="30" style="border:1px solid #8CC363; background-color:#E7F5DD; background-image:url(Images/show_bg.jpg);"> <b>您现在的位置:</b><a href="index.asp">首页</a> >> 文章查询 >> 列表</TD> </TR> </TABLE> <table width="98%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="565" align="center" valign="top"><table border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="6"></td> </tr> </table> <table width="100%" border="0" cellpadding="0" cellspacing="0" background="Images/pic16.gif" style="border:1px solid #CCCCCC;"> <tr> <td width="45" height="28" align="center" style="font-size:14px; color:#CC6600; font-weight:bold;"> </td> <td style="font-size:14px; font-weight:bold;">搜索<font color="#FF6600">"<%=trim(keywords)%>"</font></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0" style="line-height:24px;"> <tr> <td height="840" valign="top" style="border-left:1px solid #EBF6D8; border-right:1px solid #EBF6D8; border-bottom:1px solid #EBF6D8;"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="center"><table width="98%" border="0" cellspacing="0" cellpadding="0"> <% sql="select * from news where bt like '%"&keywords&"%' or nr like '%"&keywords&"%'" set rs=server.createobject("adodb.recordset") rs.open sql,conn,1 rs.pagesize=25'每页显示多少条 pagecount=rs.pagecount '总页数 if rs.bof and rs.eof then %> <tr> <td height="32" align="left" ><span style="font-size:14px;">没有查到相关记录</span></td> </tr> <% else page=clng(request.querystring("page")) if page<1 then page=1 if page>rs.pagecount then page=rs.pagecount rs.absolutepage=page '跳到多少页 for i=1 to rs.pagesize %> <tr> <td height="32" align="left" style="border-bottom:1px dotted #CCECB6"><a href="show.asp?id=<%=rs("id")%>" target="_blank"> <span style="font-size:14px;">·<%=left(rs("bt"),34)%></span></a> <font color="#0066FF">[<%=datevalue(rs("riqi"))%>]</font></td> </tr> <% rs.movenext if rs.eof then exit for next end if%> </table> <table width="95%" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="22" align="center"> <span style="color:#666666">[共<%=rs.pagecount%>页 当前第<%=page%>页 <% if page<=1 then Response.Write("首页 ") Response.Write ("上一页") else Response.Write("<a href='?keywords="&keywords&"&Page=1' class='list'>首页</a> ") Response.Write("<a href='?keywords="&keywords&"&Page=" & (Page-1) & "' class='list'>上一页</a>") end if response.write " " if page>=Rs.PageCount then Response.Write ("下一页") Response.Write(" 尾页") else Response.Write("<a href='?keywords="&keywords&"&Page=" & (Page+1) & "' class='list'>下一页</a>") Response.Write(" <a href='?keywords="&keywords&"&Page=" & rs.pagecount & "' class='list'>尾页</a>") end if %>]</span></td> </tr> </table> </td> </tr> </table></td> </tr> </table></td> </tr> </table> <!--格线结束 --></td> <td valign="top"><!--网站右部开始 --> <!--#include file="right_i.asp" --> <!--网站右部结束 --></td> </tr> </table> <table border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="6"></td> </tr> </table> <!--友情链接开始 --><!--友情链接结束 --> <!--网站尾部开始 --> <!--#include file="foot.asp" --> <!--网站尾部结束 --> </body> </html>